<template>
  <div class="left-box">
    <div class="msg-icon"></div>
    <div class="msg-box">今天吃了么</div>
  </div>
</template>

<script>
export default {}
</script>

<style scoped>
.left-box {
  position: relative;
  display: flex;

  margin: 10px 0;
}

.msg-icon {
  width: 30px;
  height: 30px;
  background-color: aliceblue;
  margin-left: 20px;
}

.msg-box {
  max-width: 60%;
  border-radius: 2px;
  box-sizing: border-box;
  margin-left: 10px;
  line-height: 28px;
  font-size: 14px;
  background-color: #ffffff;
  border: 1px solid #f2f6fc;
  padding: 0 10px;
}

.msg-box:before {
  position: absolute;
  content: '';
  border-top: 6px transparent dashed;
  border-left: 6px transparent dashed;
  border-bottom: 6px transparent dashed;
  border-right: 8px #fff solid;
  top: 5px;
  left: 47px;
}
</style>
